home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: weatby@aol.com (Weatby)
- Newsgroups: comp.lang.c++
- Subject: Re: Destructors in functions
- Date: 15 Jan 1996 02:02:23 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4dcu5v$jcp@newsbf02.news.aol.com>
- References: <DL57qo.ICn@research.att.com>
- Reply-To: weatby@aol.com (Weatby)
-
- Well now, I don't know what my compiler does, exactly. I don't think I
- have tried it with objects within objects.
-
- But I assumed a bitwise copy, because the textbook I used in my C++ class,
- says so. To quote, "..the default method of parameter passing in C++,
- including objects, is by value. This means that a bitwise copy of the
- argument is made...."
-
- Obviously, if the language or compiler calls a 'default' constructor, it
- should, in those cases, call a 'default' destructor.
-
- But thanks anyway.
-